import { http } from '@/utils/request.js'

const contractService = {
  list: (params) => {
    return http.get('/system/contract/list', params)
  },
  add: (params) => {
    return http.post('/system/contract', params)
  },
  del: (id) => {
    return http.delete(`/system/contract/${id}`)
  },
  update: (params) => {
    return http.put('/system/contract', params)
  },
  audit: (params) => {
    return http.put('/system/contract/audit', params)
  },
  getDetail: (id) => {
    return http.get(`/system/contract/${id}`)
  },
  insertFiling: (params) => {
    return http.put('/system/contract/insertFiling', params)
  },
  getDistributorList: (data) => {
    return http.get('/system/distributor/queryList', data)
  },
  getSubjectContractList: (data) => {
    return http.get('/system/subjectContract/queryList', data)
  },
  getSubmitCompanyList: (data) => {
    return http.get('/system/submitCompany/queryList', data)
  },
  getCustomerInformationList: (data) => {
    return http.get('/system/customerInformation/queryList', data)
  },
  getZlByContractList: (id, data) => {
    return http.get(`/system/contract/getZlByContract/${id}`, data)
  },
  removeInProcessContact: (id) => {
    return http.delete(`/system/contract/removeInProcessContact/${id}`)
  },
}

export default contractService
